/* 使用指南容器 */
.user-guide-container {
  height: 100%;
}

.user-guide-layout {
  height: 100%;
  min-height: calc(100vh - 120px);
}

/* 左侧导航栏 */
.user-guide-sider {
  background: #c9c8f5;
  border-right: 1px solid #e8e8e8;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

.guide-sider-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8e8;
}

.guide-sider-header .ant-typography {
  margin: 0;
  color: #1890ff;
}

.guide-tree-container {
  padding: 16px;
  height: calc(100% - 70px);
  overflow-y: auto;
}
.guide-tree {
  background: rgba(255, 255, 255, 0.4);
}

.guide-tree .ant-tree-node-content-wrapper {
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s;
}

.guide-tree .ant-tree-node-content-wrapper:hover {
  background: #e6f7ff;
}

.guide-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {
  background: rgba(88, 170, 248, 0.7);
  color: #fff;
}

.guide-tree .ant-tree-title {
  font-size: 14px;
  font-weight: 500;
}

.guide-tree .ant-tree-switcher {
  color: #1890ff;
}

/* 右侧内容区域 */
.user-guide-content {
  background: #e6e4fb;
  padding: 0;
  overflow: hidden;
}

.guide-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  color: #666;
}

.guide-loading p {
  margin-top: 16px;
  font-size: 16px;
}

.guide-error {
  margin: 24px;
}

.guide-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
}

/* 文档内容容器 */
.guide-doc-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.guide-doc-header {
  padding: 24px 32px 16px;
  border-bottom: 1px solid #e8e8e8;
  background: linear-gradient(135deg, #ddc6ff 0%, #a3dbff 60%, #4086cc 100%);
}

.guide-doc-header .ant-typography {
  margin: 0;
  color: #262626;
}

.guide-doc-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  line-height: 1.8;
}

/* Markdown 样式 */
.guide-doc-content h1 {
  font-size: 32px;
  font-weight: 600;
  color: #262626;
  margin: 0 0 24px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #1890ff;
}

.guide-doc-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: #262626;
  margin: 32px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8e8e8;
}

.guide-doc-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #262626;
  margin: 24px 0 12px 0;
}

.guide-doc-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: #262626;
  margin: 20px 0 8px 0;
}

.guide-doc-content p {
  font-size: 14px;
  color: #595959;
  margin: 12px 0;
  line-height: 1.8;
}

.guide-doc-content ul,
.guide-doc-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

.guide-doc-content li {
  font-size: 14px;
  color: #595959;
  margin: 8px 0;
  line-height: 1.6;
}

.guide-doc-content blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  background: #f6f8fa;
  border-left: 4px solid #1890ff;
  border-radius: 4px;
}

.guide-doc-content blockquote p {
  margin: 0;
  color: #666;
  font-style: italic;
}

/* 代码样式 */
.inline-code {
  background: #f6f8fa;
  color: #d73a49;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
  font-size: 13px;
}

.code-block {
  background: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 16px;
  margin: 16px 0;
  overflow-x: auto;
}

.code-block code {
  background: none;
  color: #24292e;
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
  font-size: 13px;
  line-height: 1.45;
}

/* 表格样式 */
.markdown-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
}

.markdown-table th {
  background: #fafafa;
  color: #262626;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e8e8e8;
}

.markdown-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #595959;
}

.markdown-table tr:last-child td {
  border-bottom: none;
}

.markdown-table tr:hover {
  background: #fafafa;
}

/* 链接样式 */
.markdown-link {
  color: #1890ff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}

.markdown-link:hover {
  color: #40a9ff;
  border-bottom-color: #40a9ff;
}

/* 强调文本 */
.guide-doc-content strong {
  font-weight: 600;
  color: #262626;
}

.guide-doc-content em {
  font-style: italic;
  color: #666;
}

/* 分割线 */
.guide-doc-content hr {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 24px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .user-guide-sider {
    width: 250px !important;
    min-width: 250px !important;
  }
  
  .guide-doc-content {
    padding: 16px;
  }
  
  .guide-doc-header {
    padding: 16px 20px 12px;
  }
  
  .guide-doc-content h1 {
    font-size: 24px;
  }
  
  .guide-doc-content h2 {
    font-size: 20px;
  }
  
  .guide-doc-content h3 {
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .user-guide-sider {
    width: 200px !important;
    min-width: 200px !important;
  }
  
  .guide-tree-container {
    padding: 12px;
  }
  
  .guide-doc-content {
    padding: 12px;
  }
  
  .guide-doc-header {
    padding: 12px 16px 8px;
  }
}

/* 滚动条样式 */
.guide-tree-container::-webkit-scrollbar,
.guide-doc-content::-webkit-scrollbar {
  width: 6px;
}

.guide-tree-container::-webkit-scrollbar-track,
.guide-doc-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.guide-tree-container::-webkit-scrollbar-thumb,
.guide-doc-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.guide-tree-container::-webkit-scrollbar-thumb:hover,
.guide-doc-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}